.class public Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;
.super Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;
.source "AbsBaseSwipeBackActivity.java"


# instance fields
.field protected mHandler:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .registers 2

    .prologue
    .line 14
    invoke-direct {p0}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;-><init>()V

    .line 16
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->mHandler:Landroid/os/Handler;

    return-void
.end method


# virtual methods
.method protected getActivity()Landroid/app/Activity;
    .registers 1

    .prologue
    .line 37
    return-object p0
.end method

.method protected getContext()Landroid/content/Context;
    .registers 1

    .prologue
    .line 33
    return-object p0
.end method

.method protected getScreenDisplayMetrics()Landroid/util/DisplayMetrics;
    .registers 3

    .prologue
    .line 41
    new-instance v0, Landroid/util/DisplayMetrics;

    invoke-direct {v0}, Landroid/util/DisplayMetrics;-><init>()V

    .line 42
    .local v0, "dm":Landroid/util/DisplayMetrics;
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->getActivity()Landroid/app/Activity;

    move-result-object v1

    invoke-virtual {v1}, Landroid/app/Activity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v1

    invoke-interface {v1}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Display;->getMetrics(Landroid/util/DisplayMetrics;)V

    .line 43
    return-object v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 4
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 21
    invoke-static {}, Lcom/zuiapps/suite/utils/device/DeviceUtil;->hasSmartBar()Z

    move-result v1

    if-nez v1, :cond_a

    .line 22
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->requestWindowFeature(I)Z

    .line 24
    :cond_a
    invoke-super {p0, p1}, Lcom/brixd/android/swipeback/lib/activity/SwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 26
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/AbsBaseSwipeBackActivity;->getActionBar()Landroid/app/ActionBar;

    move-result-object v0

    .line 27
    .local v0, "bar":Landroid/app/ActionBar;
    if-eqz v0, :cond_16

    .line 28
    invoke-virtual {v0}, Landroid/app/ActionBar;->hide()V

    .line 30
    :cond_16
    return-void
.end method
